package com.ln.test;


/**
 * Created with IntelliJ IDEA.
 * User: xi
 * Date: 13-7-11
 * Time: AM12:41
 * To change this template use File | Settings | File Templates.
 */
public class JettyServer {


    public static void main(String[] args) throws Exception {
//        Server server = new Server();
//        Connector connector = new SelectChannelConnector();
//        connector.setPort(80); // 设置要监听的端口.
//        server.addConnector(connector);
//        WebAppContext context = new WebAppContext();
//        context.setContextPath("/irm"); // 设置上下文路径
//        // 设置web应用根路径
//        context.setResourceBase("D:/java/workspace/EKP-IRM/WebContent");
//        HandlerCollection handlerCollection = new HandlerCollection();
//        handlerCollection.addHandler(context);
//        server.setHandler(handlerCollection);
//        server.start();
    }


}
